package com.autumn.oauth2.zero.domain.entities;

import javax.persistence.Column;

import com.autumn.mybatis.mapper.annotation.ColumnOrder;
import com.autumn.mybatis.mapper.annotation.Index;

/**
 * 抽象的用户角色
 * 
 * @author 老码农 2018-04-09 22:41:50
 */
public abstract class AbstractUserRole extends AbstractUserChild {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7902664728487450665L;

	@ColumnOrder(2)
	@Column(name = "role_id", nullable = false)
	@Index
	private Long roleId;

	/**
	 * 获取角色Id
	 * 
	 * @return
	 */
	public Long getRoleId() {
		return roleId;
	}

	/**
	 * 设置角色Id
	 * 
	 * @param roleId
	 *            角色Id
	 */
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

}
